<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>删除留言</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div align="center"><h2>
<?php
	include "dbconnect.php";	
	$iddel = intval($_GET['id']);	//所编辑的留言ID
	$sql = "DELETE FROM guestbook WHERE id=$iddel";
	$result = mysql_query ($sql);
	echo "删除的记录数：" . mysql_affected_rows ($conn);	
?></h2>
<br>
<script type="text/javascript"> 
setTimeout("myfun()",2000);
function myfun()
{
window.location.href ="list.php";
}
</script> 
</div>
</body>
</html>